package com.guli.gulimall.product.feign.fallback;

import com.guli.common.exception.BizCodeEnum;
import com.guli.common.utils.R;
import com.guli.gulimall.product.feign.SeckillFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * feign熔断
 */
@Slf4j
@Component
public class SeckillFeignServiceFallBack implements SeckillFeignService {
    @Override
    public R getSkuSeckillInfo(Long skuId) {
        log.info("熔断方法调用。。");
        return R.error(BizCodeEnum.TOO_MANY_EXCEPTION.getCode(),BizCodeEnum.TOO_MANY_EXCEPTION.getMsg());
    }
}
